package net.zoneland.knowledge.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class TaskReminderSubWork implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id.
     */
    private String id;

    /**
     * 工单主任务编号.
     */
    private String mainWorkId;

    /**
     * 工单子任务编号.
     */
    private String subWorkId;

    /**
     * 落实举措.
     */
    private String implementedInitiatives;

    /**
     * 细化说明.
     */
    private String detailedDescription;

    /**
     * 时间计划.
     */
    private String planTime;

    /**
     * 完成标志.
     */
    private String completionMark;

    /**
     * 创建时间.
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)		// 反序列化
    @JsonSerialize(using = LocalDateTimeSerializer.class)		// 序列化
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 是否删除(0否，1是).
     */
    private int del;

    /**
     * 工作子项描述.
     */
    private String subWorkDescription;

    /**
     * 备注.
     */
    private String remarks;

    /**
     * 创建时间.
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)		// 反序列化
    @JsonSerialize(using = LocalDateTimeSerializer.class)		// 序列化
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
